<script setup>
import BaseSlide from '@/components/slide/BaseSlide.vue'
</script>

<template>
  <div class="home-container">
    <!-- 平台介绍 -->
    <div class="section">
      <div class="card">
        <h1>法律援助平台</h1>
        <p class="intro-text">我们致力于为每一位公民提供专业、便捷、高效的法律服务，让法律触手可及。</p>
      </div>
    </div>

    <!-- 幻灯片区域 -->
    <div class="section">
      <BaseSlide />
    </div>

    <!-- 服务卡片 -->
    <div class="section">
      <div class="services-grid">
        <div class="service-card">
          <div class="card-icon">⚖️</div>
          <h3>法律咨询</h3>
          <p>专业律师团队提供在线法律咨询服务，解答您的法律疑问。</p>
        </div>
        <div class="service-card">
          <div class="card-icon">📝</div>
          <h3>文书起草</h3>
          <p>协助起草各类法律文书，确保您的合法权益得到保障。</p>
        </div>
        <div class="service-card">
          <div class="card-icon">🔍</div>
          <h3>案例分析</h3>
          <p>提供相似案例参考，帮助您更好地了解案件处理方向。</p>
        </div>
      </div>
    </div>

    <!-- 关于我们 -->
    <div class="section">
      <div class="card about-card">
        <h2>关于我们</h2>
        <p>我们是一个专业的法律咨询公司，致力于为客户提供专业的法律服务。拥有多年从业经验的律师团队，涵盖民事、刑事、商事等多个法律领域。</p>
        <p>我们的使命是让法律服务更加普及化，帮助更多人维护自己的合法权益。</p>
      </div>
    </div>
  </div>
</template>

<style scoped>
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.section {
  margin-bottom: 40px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.intro-text {
  font-size: 1.2rem;
  color: #7f8c8d;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.service-card p {
  color: #7f8c8d;
  line-height: 1.6;
}

.about-card h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.about-card p {
  color: #7f8c8d;
  line-height: 1.8;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .home-container {
    padding: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
</style>
